<div class="main-content" id="main-content">
		<div class="sub-content">
			<div class="top-header">
				<h1>Sell Offer Info</h1>
			</div>
			<div class="top-links btn-active">
				<ul>
					<? if(isset($_GET['product_id']) && $_GET['product_id']!=""){?>
						<li ><a href="/products/add-product?product_id=<? echo $_GET['product_id'];?>"><span>1</span></a></li>
						<li class="active-menu"><a  href="/products/add-product-next?product_id=<? echo $_GET['product_id'];?>"><span>2</span></a></li>
					<?}else{?>
						<li ><a href="/products/add-product"><span>1</span></a></li>
						<li class="active-menu"><a  href="/products/add-product-next"><span>2</span></a></li>
					<?}?>					
					<li><span>3</span></li>
				</ul>
			</div>
			<div class="middle-forms1">
				<form id="forms" method="post">
					<div class="sell_off">
						<div class="sub_off">
							<div class="col_1">
								<label>Qty</label>
								<input type="text" id="qty" name="qty" value="<? if(isset($this->productsDeatils->quntity)){ echo $this->productsDeatils->quntity;}?>" placeholder="eg 1000"  />
							</div>
							<div class="col_2">
								<label>Units</label>
								<input type="text" id="units" value="<? if(isset($this->productsDeatils->unites)){ echo $this->productsDeatils->unites;}?>" name="units" placeholder="eg Kg, Ltr"  />
							</div>
						</div><span style="color:red" id="errorquantity"></span>&nbsp;&nbsp;&nbsp; <span style="color:red; margin-left:190px;" id="errorunits"></span>
						     
						<div class="sub_off">
							<div class="col_1">
								<label>Year of Manufacture</label>
								<div class="select">
									<select id="year" name="year" >										
										<option value="2012" >2012</option>
									</select>
								</div>
							</div><span style="color:red" id="erroryomanufavcture"></span>
							<div class="col_2">
								<div class="content_2">
									* if you are not aware of Year of Manufacture, Please mention Year of Purchase
								</div>
							</div>
						</div>
						<div class="sub_off">
							<div class="col_1">
								<label>Packing</label>
								<input type="text" id="packing" value="<? if(isset($this->productsDeatils->package)){ echo $this->productsDeatils->package;}?>" name="packing" placeholder="eg 200"  />
							</div>
							<div class="col_2">
								<label>per</label>
								<input type="text" id="per" name="per" value="<? if(isset($this->productsDeatils->per)){ echo $this->productsDeatils->per;}?>" placeholder="eg Drum, Bag, Tote"  />
							</div>
						</div><span style="color:red" id="errorpacking">&nbsp;&nbsp;</span><span style="color:red; margin-left:222px;" id="errorper" ></span>
						<div class="sub_off">
							<div class="col_3">
								<label>Suggested Price</label>
								<div class="input_fields">
									<span>TSH</span>
									<input type="text" id="tsh" name="tsh" value="<? if(isset($this->productsDeatils->suggested_price)){ echo $this->productsDeatils->min_price;}?>" placeholder="eg 600" />
								</div>
							</div>
						</div><span style="color:red" id="errorsprice"></span>
						<div class="sub_off">
							<div class="col_3">
								<label>Min Price</label>
								<div class="input_fields">
									<span>TSH</span>
									<input type="text" id="tshm" value="<? if(isset($this->productsDeatils->min_price)){ echo $this->productsDeatils->min_price;}?>" name="tshm" placeholder="eg 500" />
								</div>
							</div>
						</div><span style="color:red" id="errormprice"></span>
						<input type="hidden" id="hid_product_id" name="hid_product_id" value="<? if(isset($this->productsDeatils->product_id)){ echo $this->productsDeatils->product_id;}?>"/>
						<div class="forms-list">
							<button onclick="return submitValues()">Continue</button>
						</div>
					</div>
				</form>
			</div>                
		</div>
</div>
</html>
<script>
	function submitValues(){
	    var flag=true;	
		var letters = /^[a-zA-Z ]*$/; 
		var numbers = /^[0-9]+$/;
		var quantity=$('#qty').val();
		var units=$('#units').val();
		var year=$('#year').val();
		var packig=$('#packing').val();
		var per=$('#per').val();
		var sprice=$('#tsh').val();
		var minprice=$('#tshm').val();
		if(quantity==""){
		   $('#errorquantity').html('*Please enter quantity');	
		   flag=false;
		}else{
			$('#errorquantity').html('');
		}
		if(units==""){
			$('#errorunits').html('*Please enter units');	
			flag=false;
		}else{
			$('#errorunits').html('');
		}
		if(year==""){
			$('#erroryomanufavcture').html('*Please enter year of manufacture');
			flag=false;
		}else{
			$('#erroryomanufavcture').html('');
		}
		if(packig==""){
			$('#errorpacking').html('*Please enter packing');
			flag=false;
		}else{
			$('#errorpacking').html('');
		}
		if(per==""){
			$('#errorper').html('*Please enter per');	
			flag=false;
		}else{
			$('#errorfax').html('');
		}
		if(sprice==""){
		  $('#errorsprice').html('*Please enter suggested price');
		}else{
		   $('#errorsprice').html('');
		}
		if(minprice==""){
		  $('#errormprice').html('*Please enter minimum price');
		}else{
		   $('#errormprice').html('');
		}
		if(flag==false){ 
			return false;
		}else{		
		  $("#forms").submit();
		}
	}
</script>